<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<div class="t_bar">General Information of the Project(For Chinese Principal Investigator/Project Manager)</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="generalInfo1" cellspacing="1">	
	<tr>
		<td align="right"><span class="color_red">*</span>Project Title:</td>
		<td colspan="3">
			<input name="general/project_title" label="Project Title" type="text" required class="input_css required maxlength:50"  style="width:775px;" maxlength="50" value="<x:out select="$xmlData/data/general/project_title" />"/>
		</td>
	</tr>
	<tr>
		<td align="right">Specialty Field:</td>
		<td colspan="3">
			<input name="general/specialty_field" label="Specialty Field" type="text" class="input_css maxlength:50"  style="width:775px;" maxlength="50" value="<x:out select="$xmlData/data/general/specialty_field" />"/>
		</td>
	</tr>
	<tr>
		<td align="right" rowspan="2" width="230px"><span class="color_red">*</span>Financial Support:</td>
		<td align="center" width="230px">
			Apply for Financial Support from the Chinese Side
		</td>
		<td align="right" width="50px">RMB￥</td>
		<td>
			<input onfocus="InitInput.setNumber(this,7,4,4)" name="general/financial_support_zh" label="Financial Support" type="text" required class="input_css required maxlength:50"  style="text-align:right;width:105px;" maxlength="50" value="<x:out select="$xmlData/data/general/financial_support_zh" />"/>
		</td>
	</tr>
	<tr>
		<td align="center">
			Foreign Investment: 
		</td>
		<td align="right">US$</td>
		<td>
			<input onfocus="InitInput.setNumber(this,7,4,4)" name="general/financial_support_en" label="Foreign Investment" type="text" required class="input_css required maxlength:50"  style="text-align:right;width:105px;" maxlength="50" value="<x:out select="$xmlData/data/general/financial_support_en" />"/>
		</td>
	</tr>
	<tr>
		<td align="right" ><span class="color_red">*</span>Name of Cooperation Agreement:</td>
		<td colspan="3">
		    <input name="general/cooperation_agreement" label="Name of Cooperation Agreement" onfocus="InitInput.setMaxLength(this,50)" type="text" required class="input_css required"  style="width:775px;" maxlength="50" value="<x:out select="$xmlData/data/general/cooperation_agreement" escapeXml="true"/>"/>
		</td>
		
	</tr>
	<tr>
		<td align="right" ><strong><span class="color_red">*</span>Project Duration:</strong></td>
		<td colspan="3">
			from <input name="general/project_duration/from_month" onfocus="InitInput.setNumRange(this,1,12)" label="Project Duration from month" type="text" required class="input_css required maxlength:50"  style="text-align:right;width:50px;" maxlength="2" value="<x:out select="$xmlData/data/general/project_duration/from_month" />"/> / 
			<input name="general/project_duration/from_year" onfocus="InitInput.setNumber(this,7,0,0)" label="Project Duration from year" type="text" required class="input_css required maxlength:50"  style="text-align:right;width:50px;" maxlength="4" value="<x:out select="$xmlData/data/general/project_duration/from_year" />"/>  
			to  <input name="general/project_duration/to_month" onfocus="InitInput.setNumRange(this,1,12)" label="Project Duration to month" type="text" required class="input_css required maxlength:50"  style="text-align:right;width:50px;" maxlength="2" value="<x:out select="$xmlData/data/general/project_duration/to_month" />"/> / 
			<input name="general/project_duration/to_year" onfocus="InitInput.setNumber(this,7,0,0)" label="Project Duration to year" type="text" required class="input_css required maxlength:50"  style="text-align:right;width:50px;" maxlength="4" value="<x:out select="$xmlData/data/general/project_duration/to_year" />"/>  (m/y)
		</td>
	</tr>
</table>
<br>

<div class="t_bar">Proposed Project Manager / Applicant in China</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="generalInfo2" cellspacing="1">	
	<tr>
		<td align="right"><span class="color_red">*</span>Chinese Applicant:</td>
		<td colspan="3">
			<input name="general/zh_manager/chinese_applicant" label="Chinese Applicant" type="text" required class="input_css required maxlength:50"  style="width:780px;" maxlength="50" value="<x:out select="$xmlData/data/general/zh_manager/chinese_applicant" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><strong><span class="color_red">*</span>Principal Investigator</strong>/Project Manager:</td>
		<td colspan="3">
		    <input name="general/zh_manager/principal_investigator" label="Principal Investigator/Project Manager:" type="text" onfocus="InitInput.setMaxLength(this,50)" required class="input_css required"  style="width:780px;" maxlength="50" value="<x:out select="$xmlData/data/general/zh_manager/principal_investigator"  escapeXml="true"/>"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>Address:</td>
		<td colspan="3">
			<input name="general/zh_manager/address" label="Address" type="text" required class="input_css required maxlength:200"  style="width:780px;" maxlength="200" value="<x:out select="$xmlData/data/general/zh_manager/address" />"/>
		</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>Zip Code:</td>
		<td colspan="3">
			<input name="general/zh_manager/zip_code" label="Zip Code" type="text" required class="input_css required maxlength:50"  style="width:180px;" maxlength="50" value="<x:out select="$xmlData/data/general/zh_manager/zip_code" />"/>
		</td>
	</tr>
	<tr>
		<td align="right" width="130"><span class="color_red">*</span>Telephone Number:</td>
		<td width="300">
			<input name="general/zh_manager/telephone" label="Telephone Number" type="text" required class="input_css required maxlength:50"  style="width:180px;" maxlength="50" value="<x:out select="$xmlData/data/general/zh_manager/telephone" />"/>
		</td>
		<td align="right" width="130px"><span class="color_red">*</span>Mobile Number:</td>
		<td >
			<input name="general/zh_manager/mobile" label="Mobile Number" type="text" required class="input_css required maxlength:50"  style="width:180px;" maxlength="50" value="<x:out select="$xmlData/data/general/zh_manager/mobile" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>E-mail:</td>
		<td>
			<input name="general/zh_manager/email" label="Email" type="text" required class="input_css required email maxlength:50"  style="width:180px;" maxlength="50" value="<x:out select="$xmlData/data/general/zh_manager/email" />"/>
		</td>
		<td align="right">Fax Number:</td>
		<td>
			<input name="general/zh_manager/fax" label="Fax" type="text" required class="input_css  maxlength:50"  style="width:180px;" maxlength="50" value="<x:out select="$xmlData/data/general/zh_manager/fax" />"/>
		</td>
	</tr>
</table>
<br/>

<div class="t_bar" >Overseas Project Manager / Organization</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="generalInfo3" cellspacing="1">	
	<tr>
		<td align="right"><span class="color_red">*</span>Overseas Project Organization:</td>
		<td colspan="3">
			<input name="general/en_manager/project_organization" label="Overseas Project Organization" type="text" required class="input_css required maxlength:50"  style="width:780px;" maxlength="50" value="<x:out select="$xmlData/data/general/en_manager/project_organization" />"/>
		</td>
	</tr>
	<tr>
		<td align="right" width="130px"><span class="color_red">*</span>Project Manager:</td>
		<td width="300">
			<input name="general/en_manager/project_manager" label="Project Manager" type="text" required class="input_css required maxlength:50"  style="width:180px;" maxlength="50" value="<x:out select="$xmlData/data/general/en_manager/project_manager" />"/>
		</td>
		<td align="right" width="130"><span class="color_red">*</span>Nationality:</td>
		<td>
			<c:set var="nationality"><x:out select="$xmlData/data/general/en_manager/nationality_value" /></c:set>
			<cpt:select id="nationality" key="nationality" value="${nationality}" className="required" label="Nationality"></cpt:select>
			<input type="hidden" name="general/en_manager/nationality_value" value="${nationality}" />
			<input type="hidden" name="general/en_manager/nationality_name" value="<x:out select="$xmlData/data/general/en_manager/nationality_name" />" />
		</td>
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>Address:</td>
		<td colspan="3">
			<input name="general/en_manager/address" label="address" type="text" required class="input_css required maxlength:200"  style="width:780px;" maxlength="200" value="<x:out select="$xmlData/data/general/en_manager/address" />"/>
		</td>
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>Telephone Number:</td>
		<td>
			<input name="general/en_manager/telephone" label="Telephone Number" type="text" required class="input_css required maxlength:50"  style="width:180px;" maxlength="50" value="<x:out select="$xmlData/data/general/en_manager/telephone" />"/>
		</td>
		<td align="right">Fax Number:</td>
		<td>
			<input name="general/en_manager/fax" label="Fax Number" type="text" required class="input_css  maxlength:50"  style="width:180px;" maxlength="50" value="<x:out select="$xmlData/data/general/en_manager/fax" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>E-mail:</td>
		<td colspan="3">
			<input name="general/en_manager/email" label="Email" type="text" required class="input_css required email maxlength:50"  style="width:180px;" maxlength="50" value="<x:out select="$xmlData/data/general/en_manager/email" />"/>
		</td>
	</tr>
	<tr>
		<td colspan="4"><span class="color_red">*</span>The Objectives and contents of the research project are (maximum 500 words):</td>
	</tr>
	<tr>
		<td colspan="4">
			<textarea name="general/en_manager/objectives_contents" style="width:920px; height:100px;" class="input_textarea required maxlength:500"  label="The Objectives and contents of the research project" ><x:out select="$xmlData/data/general/en_manager/objectives_contents" escapeXml="true" /></textarea>
		</td>
	</tr>
</table>
